package br.com.documentos.model.util;

import java.util.Calendar;

public class CalendarUtil 
{
	public static Calendar getDataComHorarioZerado(Calendar calendar){
		Calendar newCalendar = Calendar.getInstance();
		newCalendar.setTime(calendar.getTime());
		newCalendar.set(Calendar.HOUR, 0);
		newCalendar.set(Calendar.MINUTE, 0);
		newCalendar.set(Calendar.SECOND, 0);
		newCalendar.set(Calendar.MILLISECOND, 0);
		
		return newCalendar;
	}
}
